package com.my.study;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MapEqualsTest  implements Cloneable{

    public static void main(String[] args) {


        Map<Integer, List<Long>> a = new HashMap<>();

        a.put(1, Arrays.asList(1000L, 1221L, 12341L));
        a.put(2, Arrays.asList(10001L, 11221L, 12381L));
        a.put(3, Arrays.asList(11000L, 12231L, 12371L));

        Map<Integer, List<Long>> b = new HashMap<>();
        b.put(1, Arrays.asList(1000L, 1221L, 12341L));
        b.put(2, Arrays.asList(10001L, 11221L, 12381L));
        b.put(3, Arrays.asList(11000L, 12231L, 12371L));
        b.put(4, Arrays.asList(11L));


        boolean res = a.equals(b);
        System.out.println("result is: -=-------" + res);

    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}

